{eval 
    $_HEAD[title] = $detail[subject];
}
{include mobile_template('header')}
<link rel="stylesheet" href="{URLROOT}/{$_G[tplurl_mobile]}/css/fenlei.css" />
<div class="panel-comm panel-default panel-fullsize">
	<div class="panel-heading">
		<h3>$detail[subject]</h3>
		<p class="txt-comm txt-grey">
			$detail[username]
			<span class="split"></span>
			{date $detail[dateline],'w2style'}
		</p>
	</div>

	<div class="panel-body">

		<ul class="list-group">
			<li class="list-group-item">
				<div class="fr">
					{date $detail[endtime],'Y-m-d'}
				</div>
				过期时间
				{if $detail[endtime]<$_G['timestamp']}
				<span class="label-comm label-warning label-small">已过期</span>
				{/if}
			</li>
			<li class="list-group-item">
				<div class="fr">
					$detail[linkman]
				</div>
				联系人
			</li>
			{if $detail[contact]}
			<a class="list-group-item" href="tel:$detail[contact]">
				<div class="fr">
					$detail[contact]
				</div>
				联系电话
			</a>
			{/if}
			{if $detail[email]}
			<a class="list-group-item" href="mailto:$detail[email]">
				<div class="fr">
					$detail[email]
				</div>
				电子邮箱
			</a>
			{/if}
			{if $detail[im]}
			<li class="list-group-item">
				<div class="fr">
					$detail[im]
				</div>
				QQ/MSN
			</li>
			{/if}
			{if $detail[address]}
			<li class="list-group-item">
				联系地址
				<p class="txt-comm txt-grey txt-small">$detail[address]</p>
			</li>
			{/if}
			{if $subject}
			<a href="{url item/mobile/do/detail/id/$subject[sid]}" class="list-group-item">
				<div class="fr"><span class="arrow"></span></div>
				关联对象：$subject[name]{if $$subject['subname']}($subject[subname]){/if}
			</a>
			{/if}
			{if $detail[pictures]}
			<a href="javascript:" class="list-group-item" id="pics_btn">
				<div class="fr">
					{eval $pictures=is_serialized($detail[pictures])?unserialize($detail[pictures]):array();}
					<span class="txt-grey txt-small">
						共有 {print count($pictures)} 张
					</span>
					<span class="arrow"></span>
				</div>
				信息照片
				<!--{loop $pictures $pic}-->
				<!--{eval $thumbpic = dirname($pic).'/thumb_'.basename($pic); }-->
                <input type="hidden" data-url="$thumbpic">
            	<!--{/loop}-->
			</a>
			{/if}
		</ul>

		<div class="txt-comm txt-grey txt-richtxt-img mt10">
			<!--{if $detail_custom_field}-->
			<table border="0" cellspacing="0" cellpadding="0" class="fenlei-custom-field">
				$detail_custom_field
			</table>
			<!--{/if}-->
			$detail[content]
		</div>

	</div>

</div>
<!--{hook 'load_comment', $comment_cfg}-->
<script src="{URLROOT}/static/mobile/js/swipe.js"></script>
<script src="{URLROOT}/static/mobile/js/swipe_srceen.js"></script>
<script>
$(function() {
    //图片浏览
    $('#pics_btn').click(function() {
    	swipe_srceen($(this), 'input[type="hidden"]', 0);
    });
});
</script>
{include mobile_template('footer')}